
<div class="users form">

	<h2>Friend Requests</h2>
	<?php 
	if ($friend_requests) {
		foreach ($friend_requests as $friend_request) {	?>
		<div class="friends_listing"> <?php 		
			if (file_exists('img/profile/user/' . $friend_request['RequestFriend']['requestor_id'] . '.jpg')) {
           		echo '<p>' . $this->Html->image('profile/user/' . $friend_request['RequestFriend']['requestor_id']. '.jpg', array('width' => '100')) . '</p>';
           	} else {
           		echo '<p>' . $html->image("default_user.jpg", array('width' => '100')) . '</p>';
           	}
           	echo $friend_request['User']['first_name'] .  ' ' . $friend_request['User']['last_name'] . "<p>";
           	echo $this->Html->link(__('accept', true), array('controller'=>'friends', 'action'=>'add_friends', $friend_request['User']['id']));
		?></div><?php 	
		}
	} else {
		echo "<h3>" . 'You do not have any friend requests.' . "</h3>";
	}
	?>

</div>
